package com.jg.service;

import com.jg.comm.responce.PageResult;
import com.jg.model.dto.OrderDTO;
import com.jg.model.dto.OrderQuery;
import com.jg.model.entity.PurchaseOrders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jg.model.vo.OrderVo;
import com.jg.model.vo.SupplierOrderGroupVo;

import java.util.List;

/**
 * <p>
 * 采购订单表 记录采购订单信息 服务类
 * </p>
 *
 * @author 86130
 * @since 2025-09-19 11:21
 */
public interface PurchaseOrdersService extends IService<PurchaseOrders> {
    void creatOrder(List<OrderDTO> orderDTOS);

    //订单分页查询
    PageResult<OrderVo> OrderPage(OrderQuery orderQuery);
    //发货
    void updateStatus(String orderId, Integer supplierId);
    //退货
    void returnGoods(String orderId, Integer supplierId);
    //收货
    void receive(String orderId, Integer supplierId);
    //统计每个供应商每月的采购订单
    List<SupplierOrderGroupVo> supplierOrderGroup();
    //查看订单通过供应商id和月份
    List<OrderVo> queryOrderBySupplierIdAndMonth(String supplierId, String month);
}
